package com.jing.cloud.service.method;

import com.jing.cloud.service.Res;

public interface Method<T> {
    Class<T> getClazz();

    Res valid(T t) throws Exception;

    Res call(T t) throws Exception;

    Res validAndRun(T t) throws Exception;

    void setUserId(long userId);

    long getUserId();
}
